package cn.frh.org.domain;

import cn.frh.basic.domain.BaseDomain;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;
import java.util.PrimitiveIterator;

@Data
public class Department extends BaseDomain{

    //部门编号
    private String sn;
    //部门名称
    private String name;
    @ApiModelProperty("上级部门路径")
    private String dirPath;
    //部门状态
    private Integer state;
    //部门管理员
    private Long manager_id;
    private Employee manager;
    //上级部门
    private Long parent_id;
    private Department parent;

    private List<Department> children = new ArrayList<>();


}
